package ModelLayer;

import java.util.Date;

public class Sales extends SalesRental {

	private String deliveryStatus;
	private Date deliveryDate;
	private Discount discount = new Discount();
	
	public Sales(){
		super();
	}

	public Sales(int invoiceNo, Date date, double amount, int cid, String deliveryStatus, Date deliveryDate) {
		super(invoiceNo, date, amount, cid);
		this.deliveryStatus = deliveryStatus;
		this.deliveryDate = deliveryDate;
	}
	
	
	public void setDiscount(Discount disc){
		discount = disc;
	}
	
	public Discount getDiscount(){
		return discount;
	}

	public String getDeliveryStatus() {
		return deliveryStatus;
	}


	public void setDeliveryStatus(String deliveryStatus) {
		this.deliveryStatus = deliveryStatus;
	}


	public Date getDeliveryDate() {
		return deliveryDate;
	}


	public void setDeliveryDate(Date deliveryDate) {
		this.deliveryDate = deliveryDate;
	}
	
	
	
}
